import request from '@/utils/request'

// 查询第三方库存信息列表
export function list3rdstock(query) {
  return request({
    url: '/supplier/3rdstock/list',
    method: 'get',
    params: query
  })
}

// 查询第三方库存信息详细
export function get3rdstock(warehouseId) {
  return request({
    url: '/supplier/3rdstock/' + warehouseId,
    method: 'get'
  })
}

// 新增第三方库存信息
export function add3rdstock(data) {
  return request({
    url: '/supplier/3rdstock',
    method: 'post',
    data: data
  })
}

// 修改第三方库存信息
export function update3rdstock(data) {
  return request({
    url: '/supplier/3rdstock',
    method: 'put',
    data: data
  })
}

// 修改第三方库存信息
export function update3rdstockByAdd(data) {
  return request({
    url: '/supplier/3rdstock/addNum',
    method: 'put',
    data: data
  })
}

// 删除第三方库存信息
export function del3rdstock(warehouseId) {
  return request({
    url: '/supplier/3rdstock/' + warehouseId,
    method: 'delete'
  })
}
